package com.hbisedm.interninfosys.intern.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hbisedm.interninfosys.intern.entity.Role;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Sam
 * @since 2020-11-01
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getRolesByUid(String username);

    /*
    * 默认加普通用户
    * */

    Boolean saveDefaultUserAndRole(Integer uid);
}
